package com.hzcc.hzccblog.config;

import com.hzcc.hzccblog.interceptor.LoginInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @Author 早睡蛋
 * @Date 2022/7/17 17:28:25
 * @Desc:网关
 */
@Configuration
public class InterceptorConfig implements WebMvcConfigurer {

//    @Autowired
//    LoginInterceptor loginInterceptor;

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
//        registry.addInterceptor(loginInterceptor).addPathPatterns("/api/article/canCreate");
    }
}
